package com.dragon.pear.api;

import com.chris.dev.base.libs.v1.models.param.IdParam;
import com.chris.libs.http.x.v1.NetApi;
import com.chris.libs.http.x.v1.NetResult;
import com.dragon.pear.common.utils.DefaultRetrofit;

import java.util.List;
import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;

/**
 * @author Chris chan
 * Create on： 2025/2/5 4:23
 * Use for:
 * Explain: 演示
 */
public class DemoUserApi extends NetApi {
    public static Service service = DefaultRetrofit.createDemo("user", Service.class);

    public interface Service {
        @POST("getUserInfo")
        Call<NetResult<Map<String, Object>>> getUserInfo(@Header("Authorization") String token, @Body RequestBody body);

        @POST("getDataList")
        Call<NetResult<List<Map<String, Object>>>> getDataList(@Body IdParam<String> params);
    }
}
